﻿<%@ Page PathInChannel="index{Page}{Ext}" %>
<%@ OutputCache Duration="3600" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "index";
var _webPath = "<%=WebPath%>";
var _lang = "<%=PageLang%>";
var _isNeedToCheck = <%=Config[IsNeedToCheck]%>;
var _lang_working = "正在操作...";
var _lang_operation_fail = "留言失败！";
var _lang_operation_success = "留言成功！";
var _lang_name_empty = "名称不能空！";
var _lang_subject_empty = "主题不能空！";
var _lang_content_empty = "内容不能空！";
var _lang_qq_not_correct = "QQ号格式不正确！";
var _lang_email_not_correct = "Email地址格式不正确！";
</script>
</head>
<body>
<!-- TemplateBeginEditable name="菜单" -->
<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
	<div class="Wrap">
		<div class="Menu">
			<ali:Record>
				<ali:Select>
					<ali:Yes>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><strong><%=Name%></strong></a>
					</ali:Yes>
					<ali:No>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
					</ali:No>
				</ali:Select>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</div>
</ali:Menu>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：留言 - Banner" -->
<div class="Wrap">
	<div class="Ad1">
		<ali:Ad Guid="{09A9F058-3A69-430a-9521-C0651C55DEC2}">
			<a href="http://www.alibaza.com" target="_blank"><img src="<%=ImagePath%>ad/ad1.jpg" alt="Ad" style="width:980px;height:100px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="路径" -->
<div class="Wrap">
	<div class="Path">当前位置：
		<ali:Path>
			<ali:Record>
				<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt;&gt; 
			</ali:Record>
		</ali:Path>
		<%=Channel[Name]%>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<!-- TemplateBeginEditable name="广告位：留言 - 列表上方 - 左" -->
	<div class="Ad2">
		<ali:Ad Guid="{C72556B5-74C5-462a-BB4E-09A158A4EB6B}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad4.gif" alt="Ad" style="width:250px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="广告位：留言 - 列表上方 - 中" -->
	<div class="Ad2">
		<ali:Ad Guid="{146585B6-70BF-4aaa-A247-F3296F2D10B4}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:480px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="广告位：留言 - 列表上方 - 右" -->
	<div class="Ad2">
		<ali:Ad Guid="{87AA0CDC-5A2F-4330-B5C0-62246324D051}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad8.gif" alt="Ad" style="width:250px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
</div>

<div class="Wrap">
	<!-- TemplateBeginEditable name="分页上" -->
	<ali:Pagination Page="PageNumber" PageSize="5" RecordCount="List[RecordCount]">
		<div class="Block3">
			<div class="Left"><a href="#Write">我要留言</a>共有 <span><%=RecordCount%></span> 条留言</div>
			<div class="Right">
				<div class="Pagination">
					<ali:FirstPage>
						<ali:Yes>
							<span class="Disabled">&lt;&lt;</span>
							<span class="Disabled">&lt;</span>
						</ali:Yes>
						<ali:No>
							<a href="<%=FirstPage%>" title="首页">&lt;&lt;</a>
							<a href="<%=PreviousPage%>" title="上一页" id="PrevPage">&lt;</a>
						</ali:No>
					</ali:FirstPage>
					<ali:CurrentPage Range="5">
						<ali:Yes>
							<span class="Selected"><%=Index%></span>						
						</ali:Yes>
						<ali:No>
							<a href="<%=URL%>"><%=Index%></a>
						</ali:No>
					</ali:CurrentPage>
					<ali:LastPage>
						<ali:Yes>
							<span class="Disabled">&gt;</span>
							<span class="Disabled">&gt;&gt;</span>
						</ali:Yes>
						<ali:No>
							<a href="<%=NextPage%>" title="下一页" id="NextPage">&gt;</a>
							<a href="<%=LastPage%>" title="尾页">&gt;&gt;</a>
						</ali:No>
					</ali:LastPage>
				</div>
			</div>
		</div>
	</ali:Pagination>
	<!-- TemplateEndEditable -->

	<!-- TemplateBeginEditable name="列表" -->
	<ali:List ID="List" Page="PageNumber" PageSize="5" Object="GuestBook" Condition="IsChecked=true and ParentID IS NULL" Sort="CreateTime DESC">
		<ali:Record>
			<table border="0" cellpadding="15" cellspacing="1">
				<tr>
					<th>
						<dl>
							<dt><img src="<%=Head%>" alt="<%=Name%>" /></dt>
							<dd>姓名：<%=Name%></dd>
							<dd>性别：
								<%If !Convert.IsDBNull(Sex)%>
									<%If Convert.ToInt32(Sex) == 0%>
										女
									<%Else%>
										男
									<%EndIf%>
								<%EndIf%>
							</dd>
							<dd>电子邮件：<%=Email%></dd>
							<dd>主页：<a href="<%=Homepage%>" target="_blank"><%=Homepage%></a></dd>
							<dd>QQ：<%=QQ%></dd>
							<dd>发表时间：<%=CreateTime%></dd>
						</dl>
					</th>
					<td>
						<h1><span>主题：<%=Subject%></span><a id="_<%=ID%>" href="" title="回应：<%=Subject%>">回应</a></h1>
						<%If Convert.ToBoolean(Private)%>
							这是保密信件！
						<%Else%>
							<%If Convert.ToBoolean(Config[EnableHtmlEditor])%>
								<%=Content%>
							<%Else%>
								<%=HttpUtility.HtmlEncode(Convert.ToString(Content))%>
							<%EndIf%>
						<%EndIf%>
						<%If Convert.ToString(Reply) != ""%>
							<h2>站长回复：</h2>
							<div class="Color1">
								<%If Convert.ToBoolean(Private) && !Convert.IsDBNull(Password)%>
									<form action="<%=BuildUrl("view")%>" method="post" target="_blank">密码：<input type="password" name="Password" /><input type="hidden" name="ID" value="<%=InnerID%>" /><input type="submit" value="查看答案" /></form>
								<%Else%>
									<%=Reply%>
								<%EndIf%>
							</div>
						<%EndIf%>
						<ali:List Object="GuestBook" Condition="IsChecked=true and ParentID=ID" Sort="CreateTime ASC">
							<ali:Record>
								<h1></h1>
								<%If Convert.ToBoolean(Private)%>
									这是保密信件！
								<%Else%>
									<%If Convert.ToBoolean(Config[EnableHtmlEditor])%>
										<%=Content%>
									<%Else%>
										<%=HttpUtility.HtmlEncode(Convert.ToString(Content))%>
									<%EndIf%>
								<%EndIf%>
								<%If Convert.ToString(Reply) != ""%>
									<h2>站长回复：</h2>
									<div class="Color1">
										<%If Convert.ToBoolean(Private) && !Convert.IsDBNull(Password)%>
											<form action="<%=BuildUrl("view")%>" method="post" target="_blank">密码：<input type="password" name="Password" /><input type="hidden" name="ID" value="<%=InnerID%>" /><input type="submit" value="查看答案" /></form>
										<%Else%>
											<%=Reply%>
										<%EndIf%>
									</div>
								<%EndIf%>
							</ali:Record>
						</ali:List>
					</td>
				</tr>
			</table>
		</ali:Record>
	</ali:List>
	<!-- TemplateEndEditable -->

	<!-- TemplateBeginEditable name="分页下" -->
	<ali:Pagination Page="PageNumber" PageSize="5" RecordCount="List[RecordCount]">
	<div class="Block3">
		<div class="Left">共有 <span><%=RecordCount%></span> 条留言</div>
		<div class="Right">
			<div class="Pagination">
				<ali:FirstPage>
					<ali:Yes>
						<span class="Disabled">&lt;&lt;</span>
						<span class="Disabled">&lt;</span>
					</ali:Yes>
					<ali:No>
						<a href="<%=FirstPage%>" title="首页">&lt;&lt;</a>
						<a href="<%=PreviousPage%>" title="上一页" id="PrevPage">&lt;</a>
					</ali:No>
				</ali:FirstPage>
				<ali:CurrentPage Range="5">
					<ali:Yes>
						<span class="Selected"><%=Index%></span>						
					</ali:Yes>
					<ali:No>
						<a href="<%=URL%>"><%=Index%></a>
					</ali:No>
				</ali:CurrentPage>
				<ali:LastPage>
					<ali:Yes>
						<span class="Disabled">&gt;</span>
						<span class="Disabled">&gt;&gt;</span>
					</ali:Yes>
					<ali:No>
						<a href="<%=NextPage%>" title="下一页" id="NextPage">&gt;</a>
						<a href="<%=LastPage%>" title="尾页">&gt;&gt;</a>
					</ali:No>
				</ali:LastPage>
			</div>
		</div>
	</div>
	</ali:Pagination>
	<!-- TemplateEndEditable -->
</div>

<div class="Wrap">
	<!-- TemplateBeginEditable name="表单" -->
	<form action="">
		<table cellpadding="4" cellspacing="1">
			<thead>
				<tr>
					<td colspan="2">注意：带 <span>*</span>为必填项！<a name="Write"></a></td>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="2">
						<input type="submit" value="提交" class="<%=PageLang%>Font" /><br /><br />
						<input type="checkbox" id="Private" name="Private" /><label for="Private">保密</label>
						<input type="password" name="Password" disabled="disabled" />保密时，可设置密码。
						<input type="hidden" name="ParentID" />
					</td>
				</tr>
			</tfoot>
			<tbody>
				<ali:List Object="Type">
					<tr>
						<th>类型：</th>
						<td>
							<select name="TypeID" class="<%=PageLang%>Font">
								<option value="" data-name="">未指定</option>
								<ali:Record>
									<option value="<%=ID%>" data-name="<%=Name%>"><%=Name%></option>
								</ali:Record>
							</select>
						</td>
					</tr>
				</ali:List>		
				<ali:Tree Object="Category">
					<tr>
						<th>类别：</th>
						<td>
							<select name="CategoryID" class="<%=PageLang%>Font">
								<option value="" data-name="">未指定</option>
								<ali:Control>
									<ali:Space>&nbsp;&nbsp;</ali:Space>
									<ali:Line>│</ali:Line>
									<ali:TopOpen>┌</ali:TopOpen>
									<ali:Top>┌</ali:Top>
									<ali:MiddleOpen>├</ali:MiddleOpen>
									<ali:Middle>├</ali:Middle>
									<ali:BottomOpen>└</ali:BottomOpen>
									<ali:Bottom>└</ali:Bottom>
								</ali:Control>
								<ali:Record>
									<option value="<%=ID%>" data-name="<%=Name%>"><%=Control%><%=Name%></option>
									<%=ChildRecords%>
								</ali:Record>
							</select>
						</td>
					</tr>
				</ali:Tree>		
				<tr>
					<th><span>*</span>姓名：</th>
					<td><input type="text" name="Name" size="25" maxlength="50" class="<%=PageLang%>Font" /></td>
				</tr>
				<tr>
					<th>性别：</th>
					<td>
						<select name="Sex" class="<%=PageLang%>Font">
							<option value="" data-name="">未指定</option>
							<option value="1">男</option>
							<option value="0">女</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>QQ：</th>
					<td><input type="text" name="QQ" size="25" maxlength="50" class="CHSFont" /></td>
				</tr>
				<tr>
					<th>Email：</th>
					<td><input type="text" name="Email" size="25" maxlength="255" class="CHSFont" /></td>
				</tr>
				<tr>
					<th>主页：</th>
					<td><input type="text" name="Homepage" size="25" maxlength="255" class="CHSFont" /></td>
				</tr>
				<tr>
					<th>头像：</th>
					<td height="100">
						<select name="Head" class="CHSFont">
							<option>01</option>
							<option>02</option>
							<option>03</option>
							<option>04</option>
							<option>05</option>
							<option>06</option>
							<option>07</option>
							<option>08</option>
							<option>09</option>
							<option>10</option>
							<option>11</option>
							<option>12</option>
							<option>13</option>
							<option>14</option>
							<option>15</option>
							<option>16</option>
							<option>17</option>
							<option>18</option>
							<option>19</option>
							<option>20</option>
						</select>
						<img id="HeadPicture" src="<%=ImagePath%>head/01.gif" alt="头像" />
					</td>
				</tr>
				<tr>
					<th><span>*</span>主题：</th>
					<td><input type="text" name="Subject" size="50" maxlength="255" class="<%=PageLang%>Font" /></td>
				</tr>
				<tr>
					<th><span>*</span>内容：</th>
					<td>
						<%If Convert.ToBoolean(Config[EnableHtmlEditor])%>
							<textarea id="Content" name="Content" cols="50" rows="10" EditorLang="<%=PageLang%>" EditorInstanceID="<%=Channel[AliCMS.SystemModule.Alias.Instance.InnerID]%>" EditorToolBar="Basic" style="display:none;width:500px;height:250px"></textarea>
						<%Else%>
							<textarea cols="50" rows="10" name="Content" class="<%=PageLang%>Font"></textarea>
						<%EndIf%>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<!-- TemplateEndEditable -->
</div>

<!-- TemplateBeginEditable name="友情连接" -->
<ali:List Mark="System" Object="Link" Condition="IsChecked=true">
	<div class="Wrap">
		<div class="Link">
			<h1>友情链接</h1>
			<ul>
				<ali:Record>
					<li>
						<%If Convert.IsDBNull(Logo)%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						<%Else%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><img src="<%=Logo%>" alt="<%=Name%>" /></a>
						<%EndIf%>
					</li>
				</ali:Record>
			</ul>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Footer">
		<!-- TemplateBeginEditable name="脚注菜单" -->
		<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
			<ali:Record>
				<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
			<hr size="1" />
		</ali:Menu>
		<!-- TemplateEndEditable -->
	
		<%=Footer%>
	</div>
</div>

<%=ICP%>

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<%If Convert.ToBoolean(Config[EnableHtmlEditor])%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharHtmlEditor.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
